<h4>Milestone List of <?= $projects['name']?></h4>

<table width="100%" id="example" class="table table-hovered">
<thead>
  <tr>
    <th>Name</th>
    <th>Description</th>
    <th>Created by</th>
    <th>Created on</th>
    <th>Action</th>  
  </tr>
  </thead>
  <?php foreach($milestones as $milestone) {?>
  <tr>
    <td><?= $milestone->name?></td> 
    <td><?= $milestone->desc?></td> 
    <td><?= $milestone->username?></td> 
    <td><?= $milestone->created_on?></td>    
    <td><a href="#">Add Tasks</a></a></td>    
  </tr>
  <?php }?>
</table>
<hr />

<h3>Create New Milestone</h3>
<?= form_open('user/tasks/create_milestone/'.$projects['id'])?>
<table class="table-condensed" width="100%">
  <tr>
    <td>Project Name</td>
    <td>
    <input type="text" readonly="readonly" value="<?= $projects['name']?>" />
     <input type="hidden" readonly="readonly" value="<?= $projects['id']?>" name="project_id" />
    </td>
    <td class="text-error">&nbsp;</td>
  </tr>
  <tr>
    <td>Milestone Name</td>
    <td><input type="text" name="name" value="<?=set_value('name')?>" /></td>
    <td class="text-error"><?= form_error('name')?></td>
  </tr>
  <tr>
    <td>Description</td>
    <td><textarea name="desc"><?=set_value('desc')?></textarea></td>
    <td class="text-error"><?= form_error('desc')?></td>
  </tr>
    <tr>
    <td>&nbsp;</td>
    <td><input type="submit" value="Create Milestone" class="btn btn-info" /></td>
    <td></td>
  </tr>
</table>
</form>


